using raycsharp;



class MainZela {
  public static void Main() { 
    var red = new Color(1.0,0.0,0.0);
    var green = new Color(0.0,1.0,0.0);
    var blue = new Color(0.0,0.0,1.0);
    var white = new Color(1.0,1.0,1.0);

    var scene = new Scene();
    var grid = new Grid(200,200, new Vector(0.0,0.0,4.0), new Vector(1.0,0.0,0.0), new Vector(0.0,1.0,0.0), new Vector(0.0,0.0,1.0));
    var observer = new Observer(new Vector(0.0,1.0,0.0), new Vector(0.0,0.0,9.0));
    var camera = new Camera(observer, grid);
    var sphere = new Sphere(1.0,new Vector(0.0,0.0,0.0),blue,blue,blue);
    var light = new Light(new Vector(0.0,2.0,2.0), white);
    scene.lights.Add(light);
    scene.objects.Add(sphere);
    var rayc = new Raycasting(scene, camera);
    var ppm = new PPM(rayc.trace(),200,200);
    ppm.save("/dev/shm/teste");
    

    
  }
}

